<template>
	<view class="index-page">
		<image :src="h5MiniAssets('/gzh/bg.png')" mode="widthFix" class="bg-image"></image>
		<view class="content ">
			<u-navbar class="header" backIconColor="#222222" :is-fixed="false" title="公众号" titleColor="#222222"
				:background="{background: 'transparent'}" :is-back="true" z-index="90">
			</u-navbar>

			<view class="" style="padding: 26rpx 40rpx;">
				<view class="top-box" style="padding: 0 0 40rpx 0;">
					<view class="flex items-center">
						<view class="center" style="margin-right: 10rpx;">
							<image src="/static/images/gzh/ok.png" mode="widthFix" style="width: 36rpx;height: 36rpx;display: block;">
							</image>
						</view>
						<view class="" style="color: 061C34 ;">
							关注公众号
						</view>
					</view>

					<view class="" style="font-size: 60rpx;font-weight: 600;letter-spacing: 4rpx; margin-top: 16rpx;">
						<text style="color: #166EFE;">获取</text>
						<text style="color: #232D3E;">专属客服</text>
					</view>
					<view class="kefu-img">
						<image :src="h5MiniAssets('/gzh/kefu.png')" mode="widthFix" style="width: 180rpx;"></image>
					</view>
				</view>

				<view class="ewmcode-box">
					<view class="" style="margin: 46rpx 0;font-size: 46rpx;text-align: center;font-weight: 600;">
						长按识别二维码
					</view>
					<view class="" style="width: 80%;margin: auto;border-radius: 24rpx;overflow: hidden;">
						<image @longpress="longpressHandler" :src="gzhPageJumpInfo.gzhQrCode" show-menu-by-longpress mode="widthFix"
							style="width: 100%;  display: block;"></image>
					</view>

					<view class="bottom-box" style="">
						<view class="flex items-center justify-center" style="color: #061C34;font-size: 34rpx;font-weight: bold;">
							<image src="/static/images/gzh/text-left.png" mode="widthFix" style="width: 44rpx; height: 44rpx;margin-right: 14rpx;"></image>
							<text>关注</text>
							<text style="color: #1277FF;">公众号</text>
							<text>您将获取专属服务</text>
							<image src="/static/images/gzh/text-right.png" mode="widthFix" style="width: 44rpx;height: 44rpx;margin-left: 14rpx;"></image>
						</view>
						<view class="" style="background-color: #E7F7FD;border-radius: 24rpx;color: #061C34 ; padding: 30rpx 0 30rpx 80rpx; font-size: 28rpx; margin-top: 20rpx;">
							<view class="flex items-center " >
								<image src="/static/images/gzh/ok.png" mode="widthFix"
									style="width: 24rpx;height: 26rpx; display: block;margin-right: 12rpx;"></image>
								<text style="opacity: 0.69;">进度提醒：申请进度服务通知</text>
							</view>
							<view class="flex items-center " style=" margin-top: 10rpx;">
								<image src="/static/images/gzh/ok.png" mode="widthFix"
									style="width: 24rpx;height: 26rpx; display: block;margin-right: 12rpx;"></image>
								<text style="opacity: 0.69;">粉丝福利：关注享提额最高20万</text>
							</view>
							<view class="flex items-center " style="margin-top: 10rpx;">
								<image src="/static/images/gzh/ok.png" mode="widthFix"
									style="width: 24rpx;height: 26rpx; display: block;margin-right: 12rpx;"></image>
								<text style="opacity: 0.69;">专属客服：随时解答贷款问题</text>
							</view>
						</view>
					</view>
					<view class="" style="height: 8rpx;">

					</view>
				</view>


			</view>

		</view>

	</view>
</template>

<script>
	import {
		gzhPageJumpInfoApi,
		wxEventCountApi
	} from '../../api/config'
	import {
		h5Url,
		h5MiniAssets
	} from '../../configs/env.config'
	export default {
		data() {
			return {
				gzhPageJumpInfo: undefined
			}
		},
		onLoad() {
			this.initConfigData()
			const deviceId = uni.getDeviceInfo().deviceId
			wxEventCountApi({
				userUuid: deviceId,
				type: 2,
			})
		},
		methods: {
			h5MiniAssets,
			async initConfigData() {
				uni.showLoading({
					title: "加载中"
				})
				const res = await gzhPageJumpInfoApi()
				uni.hideLoading()
				this.gzhPageJumpInfo = res.data
			},
			async longpressHandler() {
				const deviceId = uni.getDeviceInfo().deviceId
				wxEventCountApi({
					userUuid: deviceId,
					type: 3,
				})
			}
		}
	}
</script>

<style lang="scss">
	// public
	.rigister-split {
		text {
			color: #2b99ed;

		}
	}

	.top-box {
		position: relative;

		.kefu-img {
			position: absolute;
			right: -20rpx;
			bottom: 0;
		}
	}

	.ewmcode-box {
		min-height: 800rpx;
		background: linear-gradient(322deg, rgba(14, 180, 247, 1) 0%, #0043FA 100%);
		color: #fff;
		border-radius: 34rpx;
		border: 3rpx solid #fff;

	}

	.bottom-box {
		background-color: #fff;
		border-radius: 34rpx;
		padding: 40rpx;
		margin-top: 60rpx;
	}

	.apply-term {
		margin-top: 30rpx;
		display: flex;
		align-items: center;
		font-size: 24rpx;
	}

	.banner2 {
		color: white;
		font-size: 80rpx;
		font-weight: 700;
		text-align: center;
		margin-top: 34rpx;
	}

	.gzhxfc {
		position: fixed;
		width: 94%;
		left: 3%;
		bottom: 60rpx;
		z-index: 10;
	}

	.header {
		background-repeat: no-repeat;
		background-size: 100% auto;
	}

	.index-page {
		position: relative;
		background-color: #D7F4FD;
		min-height: 100vh;

		.bg-image {
			position: absolute;
			z-index: 0;
			width: 100%;
		}

		.content {
			position: relative;
			z-index: 1;
		}

		.card-box {
			text-align: center;
			height: 620rpx;
			color: #fff;
			position: relative;

			.card-bottom {
				position: absolute;
				bottom: 0;
				left: 4%;
				width: calc(92% - 52rpx);
				background-color: #F4F6F9;
				color: #999999;
				font-size: 26rpx;
				padding: 12rpx 28rpx;
				border-radius: 18rpx 18rpx 0 0;
			}
		}

		.amount {
			font-size: 90rpx;
			font-weight: bold;
			margin-top: 14rpx;
			position: relative;
		}

		.line {
			position: absolute;
			bottom: 0.15em;
			left: 0;
			width: 100%;
			height: 20%;
			background-color: rgba(255, 255, 255, 0.2);
		}

		.button-tips {
			margin-top: 76rpx;
			padding: 8rpx 20rpx;
			color: #FB6C28;
			font-size: 28rpx;
			border-radius: 14rpx 14rpx 0 0;
			background: rgba(251, 108, 40, 0.10);
			border-top: 3rpx solid rgba(251, 108, 40, 0.20);
			border-left: 3rpx solid rgba(251, 108, 40, 0.20);
			border-right: 3rpx solid rgba(251, 108, 40, 0.20);
		}

		.button {
			width: 80%;
			margin: auto;
			background-color: #1277FF;
			color: #fff;
			border-radius: 999999px;
			padding: 26rpx;
			font-size: 36rpx;
			font-weight: 500;
		}

	}
</style>